PreviousNextTracker indexSee it online !

(252/308) 1770 - ScriptEnginePlugin breaks Console's Project Options Pane

In PV project properties menu, there is a pane for Console. That pane has nothing on it. No controls, nothing. It seems like it probably should have various settings where I can customize the shell, build and run commands for this project. Were these moved somewhere else? What is supposed to be here? If this pane is deprecated, it should be removed, not left blank. If it is intended to have something on it, then there seems to be an issue.

Using jEdit 5.2pre1 on Win7, Java 1.7.0_45, PV version 3.5.3

Submitted snarum-micron - 2014-01-13 17:23:22.038000 Assigned
Priority 5 Labels Project Viewer
Status open Group
Resolution None

Comments

2014-01-13 17:27:42.720000
ezust

What version of Console? Does this happen after you exit jEdit, clear out the jars-cache folder in your jEdit settings directory, and restart jEdit? I am unable to reproduce.

2014-01-13 17:45:10.992000
daleanson

With PV 3.5.3, Console 5.1.3, and jEdit 5.2pre1, I get this beanshell error then a blank panel.

Reproduce:
Open a project in PV
Right click on root node
Select properties
See Console in the left panel
Click on Console, see the following beanshell error:


Sourced file: inline evaluation of: `` new com.townsfolkdesigns.jedit.plugins.scripting.ScriptEngineShell(); . . . '' : Class or variable not found: com.townsfolkdesigns.jedit.plugins.scripting.ScriptEngineShell : at Line: 2 :
in file: inline evaluation of: `` new com.townsfolkdesigns.jedit.plugins.scripting.ScriptEngineShell(); . . . ''
: com .townsfolkdesigns .jedit .plugins .scripting .ScriptEngineShell

at org.gjt.sp.jedit.bsh.UtilEvalError.toEvalError(UtilEvalError.java:84)
at org.gjt.sp.jedit.bsh.UtilEvalError.toEvalError(UtilEvalError.java:89)
at org.gjt.sp.jedit.bsh.BSHAmbiguousName.toObject(BSHAmbiguousName.java:64)
at org.gjt.sp.jedit.bsh.BSHAllocationExpression.objectAllocation(BSHAllocationExpression.java:86)
at org.gjt.sp.jedit.bsh.BSHAllocationExpression.eval(BSHAllocationExpression.java:62)
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:102)
at org.gjt.sp.jedit.bsh.BSHPrimaryExpression.eval(BSHPrimaryExpression.java:47)
at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:644)
at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:738)
at org.gjt.sp.jedit.bsh.Interpreter.eval(Interpreter.java:727)
at org.gjt.sp.jedit.BeanShellFacade._eval(BeanShellFacade.java:148)
at org.gjt.sp.jedit.BeanShellFacade.eval(BeanShellFacade.java:113)
at org.gjt.sp.jedit.BeanShell.eval(BeanShell.java:377)
at org.gjt.sp.jedit.ServiceManager$Descriptor.getInstance(ServiceManager.java:339)
at org.gjt.sp.jedit.ServiceManager.getService(ServiceManager.java:265)
at console.Shell.getShell(Shell.java:130)
at console.Console.shellForVFS(Console.java:816)
at console.ProjectCommandOptionPane._init(ProjectCommandOptionPane.java:71)
at org.gjt.sp.jedit.AbstractOptionPane.init(AbstractOptionPane.java:108)
at org.gjt.sp.jedit.gui.OptionsDialog.valueChanged(OptionsDialog.java:253)
at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(DefaultTreeSelectionModel.java:634)
at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(DefaultTreeSelectionModel.java:1092)
at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(DefaultTreeSelectionModel.java:293)
at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(DefaultTreeSelectionModel.java:187)
at javax.swing.JTree.setSelectionPath(JTree.java:1631)
at javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(BasicTreeUI.java:2395)
at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(BasicTreeUI.java:3611)
at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(BasicTreeUI.java:3550)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
at java.awt.AWTEventMulticaster.mousePressed(AWTEventMulticaster.java:279)
at java.awt.Component.processMouseEvent(Component.java:6502)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3311)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4489)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:708)
at java.awt.EventQueue$4.run(EventQueue.java:706)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:154)
at java.awt.WaitDispatchSupport$2.run(WaitDispatchSupport.java:182)
at java.awt.WaitDispatchSupport$4.run(WaitDispatchSupport.java:221)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(WaitDispatchSupport.java:219)
at java.awt.Dialog.show(Dialog.java:1082)
at java.awt.Component.show(Component.java:1651)
at java.awt.Component.setVisible(Component.java:1603)
at java.awt.Window.setVisible(Window.java:1014)
at java.awt.Dialog.setVisible(Dialog.java:1005)
at org.gjt.sp.jedit.gui.OptionsDialog.init(OptionsDialog.java:374)
at org.gjt.sp.jedit.gui.OptionsDialog.<init>(OptionsDialog.java:72)
at projectviewer.config.ProjectOptions$ProjectOptionsDialog.<init>(ProjectOptions.java:201)
at projectviewer.config.ProjectOptions$ProjectOptionsDialog.<init>(ProjectOptions.java:194)
at projectviewer.config.ProjectOptions.run(ProjectOptions.java:130)
at projectviewer.config.ProjectOptions.run(ProjectOptions.java:83)
at projectviewer.action.EditProjectAction.editProject(EditProjectAction.java:109)
at projectviewer.action.EditProjectAction.actionPerformed(EditProjectAction.java:181)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:833)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(BasicMenuItemUI.java:877)
at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
at java.awt.Component.processMouseEvent(Component.java:6505)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3311)
at java.awt.Component.processEvent(Component.java:6270)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)
at java.awt.Container.dispatchEventImpl(Container.java:2273)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:708)
at java.awt.EventQueue$4.run(EventQueue.java:706)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)

2014-01-13 17:52:38.105000
daleanson

Then I went to PluginManager and unchecked ScriptEnginePlugin, restarted jEdit, then repeat above steps and the Console panel in PV shows up just fine.

pv_console.png (28.8Kio)

2014-01-13 17:55:23.338000
ezust

- **summary**: Blank Console settings tab in Project Viewer properties --> ScriptEnginePlugin breaks Console's Project Options Pane
- **Group**: -->

2014-01-13 18:00:01.804000
snarum-micron

Sorry, I didn't notice that I was getting an NPE when I open the console setting tab. Console version is 5.1.3.

java.lang.NullPointerException
at console.Console.shellForVFS(Console.java:817)
at console.ProjectCommandOptionPane._init(ProjectCommandOptionPane.java:71)
at org.gjt.sp.jedit.AbstractOptionPane.init(AbstractOptionPane.java:108)
at org.gjt.sp.jedit.gui.OptionsDialog.valueChanged(OptionsDialog.java:253)
at javax.swing.tree.DefaultTreeSelectionModel.fireValueChanged(Unknown Source)
at javax.swing.tree.DefaultTreeSelectionModel.notifyPathChange(Unknown Source)
at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPaths(Unknown Source)
at javax.swing.tree.DefaultTreeSelectionModel.setSelectionPath(Unknown Source)
at javax.swing.JTree.setSelectionPath(Unknown Source)
at javax.swing.plaf.basic.BasicTreeUI.selectPathForEvent(Unknown Source)
at javax.swing.plaf.basic.BasicTreeUI$Handler.handleSelection(Unknown Source)
at javax.swing.plaf.basic.BasicTreeUI$Handler.mousePressed(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.WaitDispatchSupport$2.run(Unknown Source)
at java.awt.WaitDispatchSupport$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.WaitDispatchSupport.enter(Unknown Source)
at java.awt.Dialog.show(Unknown Source)
at java.awt.Component.show(Unknown Source)
at java.awt.Component.setVisible(Unknown Source)
at java.awt.Window.setVisible(Unknown Source)
at java.awt.Dialog.setVisible(Unknown Source)
at org.gjt.sp.jedit.gui.OptionsDialog.init(OptionsDialog.java:374)
at org.gjt.sp.jedit.gui.OptionsDialog.<init>(OptionsDialog.java:72)
at projectviewer.config.ProjectOptions$ProjectOptionsDialog.<init>(ProjectOptions.java:201)
at projectviewer.config.ProjectOptions$ProjectOptionsDialog.<init>(ProjectOptions.java:194)
at projectviewer.config.ProjectOptions.run(ProjectOptions.java:130)
at projectviewer.config.ProjectOptions.run(ProjectOptions.java:83)
at projectviewer.action.EditProjectAction.editProject(EditProjectAction.java:109)
at projectviewer.action.EditProjectAction.actionPerformed(EditProjectAction.java:181)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.AbstractButton.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

2014-01-13 18:04:35.657000
ezust

Weird. So it *seems( one of the other Console plugins you have installed returns a null shell.
I need to know what other plugins you have installed so I can reproduce it.
Macros - Misc - Insert Plugins List and paste it to a comment here.

2014-01-13 18:05:18.555000
snarum-micron

Stopped jEdit, cleared jars-cache, restarted and now I see the same BeanShell error reported by Dale.

2014-01-13 18:06:55.239000
snarum-micron

Using jEdit 5.2pre1 on Mon Jan 13 11:06:37 MST 2014
Currently running plugins:

BufferTabs 1.2.4 (buffertabs.BufferTabsPlugin)
CandyFolds 1.2.3 (candyfolds.CandyFoldsPlugin)
Code2HTML 0.6 (code2html.Code2HTMLPlugin)
Common Controls 1.7.2 (CommonControlsPlugin)
Console 5.1.3 (console.ConsolePlugin)
CtagsInterface 2.7.0 (ctagsinterface.main.CtagsInterfacePlugin)
CtagsSideKick 1.5 (ctags.sidekick.Plugin)
DirtyGutter 0.3b (lcm.LCMPlugin)
ErrorList 2.1 (errorlist.ErrorListPlugin)
FileSync 1.1 (filesync.FileSyncPlugin)
GnuRegexp 1.0.1 (GnuRegexpPlugin)
Info Viewer 1.6.2 (infoviewer.InfoViewerPlugin)
LookAndFeel 1.7.0 (lookandfeel.LookAndFeelPlugin)
LucenePlugin 4.0 (gatchan.jedit.lucene.LucenePlugin)
Make 1.0 (make.MakePlugin)
MarkerSets 0.9 (marker.MarkerSetsPlugin)
MyDoggyPlugin 0.3 (myDoggy.Plugin)
Navigator 2.4 (ise.plugin.nav.NavigatorPlugin)
Optional 1.0.4 (optional.OptionalPlugin)
Project Viewer 3.5.3 (projectviewer.ProjectPlugin)
SideKick 1.4 (sidekick.SideKickPlugin)
SubstanceLookAndFeel 7.2 (lookandfeel.SubstanceLookAndFeelPlugin)
SVNPlugin 1.7.5 (ise.plugin.svn.SVNPlugin)
TaskList 2.5 (tasklist.TaskListPlugin)
Updater 0.3 (updater.UpdaterPlugin)
WhiteSpace 1.0.2 (whitespace.WhiteSpacePlugin)
Project Builder 1.2 (projectbuilder.ProjectBuilderPlugin)


Using macro C:\jEdit\jEdit 5.2pre1\macros\Misc\Insert Plugins List.bsh

2014-01-13 18:23:03.648000
ezust

I assume this means you removed ScriptEnginePlugin and now you can see the Console project options. So the subject is now correct and this is a bug in ScriptEnginePlugin.